import Vue from 'vue'
import VueRouter from 'vue-router'
import HkLayout from '@/views/hk-layout.vue'
import HkIndex from '@/views/hk-index.vue'
import HkFind from '@/views/hk-find.vue'
import HkMessage from '@/views/hk-message.vue'
import HkUesr from '@/views/hk-uesr.vue'
import HkDizhi from '@/views/hk-dizhi.vue'
import HkDitu from '@/views/hk-ditu.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/hk-dizhi', component: HkDizhi },
  { path: '/hk-ditu', component: HkDitu },
  {
    path: '/',
    component: HkLayout,
    redirect: '/hk-index',
    children: [
      { path: 'hk-index', component: HkIndex },
      { path: 'hk-find', component: HkFind },
      { path: 'hk-message', component: HkMessage },
      { path: 'hk-uesr', component: HkUesr }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
